package com.muke.dao;

import com.muke.entity.SuccSecKill;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Date: 2019-9-30.
 * Time: 11:59.
 * Explain:秒杀成功明细表
 *
 * @author hezx
 */
public interface SuccSecKillDao {
    /**
     *
     * 保存记录
     * @param secKillId
     * @param userPhone
     * @since 2019-9-30
     * @author hezx
     * @return int
     */
    int insertSuccSecKill(@Param("secKillId") Long secKillId,@Param("userPhone") Long userPhone);

    /**
     *
     * 根据ID 查询 SuccSecKill对象 并携带SecKill对象
     * @param secKillId
     * @param userPhone
     * @since 2019-9-30
     * @author hezx
     * @return com.muke.entity.SuccSecKill
     */
    SuccSecKill queryByIdWithSecKill(@Param("secKillId") Long secKillId,@Param("userPhone") Long userPhone);
}
